<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理中心</title>
<link href="images/admincp/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="images/admincp/common.js"></script>
<script type="text/javascript">
	var spTips = GetCookie('spTips');
	var tipText = '显示提示信息';
	if (spTips!=1) {
		tipText = '隐藏提示信息';
	}
	function showHideTips() {
		var shTips = getbyid('shtips');
		spTips = GetCookie('spTips');
		if (spTips!=1) {
			shTips.innerHTML = '显示提示信息'
			CreatCookie('spTips','1');
		} else {
			shTips.innerHTML = '隐藏提示信息';
			DelCookie('spTips','0')
			
		}
	}
</script>
</head>

<body onload="addMouseEvent();">
<div class="wrap">
<table id="header" summary="header" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td>
			<div id="headertitle">
				<h1>后台管理中心</h1>
				<p></p>
			</div>
		</td>
		<td>
			<ul id="topmenu">
				<li>欢迎您，<?=$name?> |</li>
				<li><a href="<?=SITEURL?>" target="_blank">网站首页</a> |</li>
				<li><a href="admincp.php?action=logout">退出</a></li>
			</ul>
			<ul id="actions">
				<li><a href="javascript:;" id="sidectrl" onclick="showContent('sidebar','sidectrl','打开侧边栏','关闭侧边栏');">关闭侧边栏</a></li>
				<li><a id="shtips" href="javascript:showHideTips();"><script type="text/javascript">document.write(tipText);</script></a></li>
			</ul>
		</td>
	</tr>
	<tr>
		<td colspan="2" id="menu">
			<ul>
				<li <? if($action == 'default'){ ?>class="current"<? } ?>><a href="?action=default">管理首页</a></li>
				<? if(!in_array('category',$dactionarr)){?><li <? if($action == 'category'){ ?>class="current"<? }?>><a href="?action=category">分类管理</a></li>
				<? }?>
                <? if(!in_array('content',$dactionarr)){?><li <? if($action == 'content'){ ?>class="current"<? }?>><a href="?action=content">文章管理</a></li><? }?>
				<? if(!in_array('recommendlist',$dactionarr) && !in_array('recommend',$dactionarr)) {?><li <? if($action == 'recommendlist' || $action == 'recommend') { ?>class="current"<? }?>><a href="?action=recommendlist">推荐管理</a></li><? }?>
				<? if(!in_array('comment',$dactionarr)){?><li <? if($action == 'comment') { ?>class="current"<? } ?>><a href="?action=comment">评论管理</a></li><? }?>
                <? if(!in_array('html',$dactionarr)){?><li <? if($action == 'html') {?>class="current"<? }?>><a href="?action=html">生成静态页</a></li><? }?>
                <!--<? if(!in_array('block',$dactionarr) && !in_array('special',$dactionarr)){?><li <? if($action == 'block' || $action == 'special'){?>class="current"<? }?>><a href="?action=special">专题碎片</a></li><? }?>-->
                <? if(!in_array('cache',$dactionarr)){?><li <? if($action == 'cache') {?>class="current"<? }?>><a href="?action=cache">缓存管理</a></li><? }?>
               <!-- <? if(!in_array('block',$dactionarr) && !in_array('special',$dactionarr)){?><li <? if($action == 'block' || $action == 'special'){?>class="current"<? }?>><a href="?action=special">插件管理</a></li><? }?>-->
				<? if(!in_array('user',$dactionarr) && $administrator[groupid]==1){?><li <? if($action == 'user' || $action=='misc' || $action=='logs' || $action=='work' || $action=='admingroup'){?>class="current"<? }?>><a href="?action=user">系统管理</a></li><? }?>
			</ul>
		</td>
	</tr>
</table>
<table summary="content" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>